<template>
  <div>
    <!-- 顶部导航 -->
    <div style="height: 40px; background-color: #555; display: flex; align-items: center; border-bottom: 1px solid #444; color: #fff;">
      <!-- 左侧 Logo 区域 -->
      <div style="flex: 1; display: flex; align-items: center; padding-left: 20px;">
        <!-- Logo 图片 -->
        <img src="@/assets/imgs/logo.png" alt="" style="width: 40px; border-radius: 50%">

        <!-- 文字 + 流星组合 -->
        <div style="font-weight: bold; font-size: 20px; margin-left: 10px; color: #ff9933; display: flex; align-items: center;">
          <!-- 聚汇星文字图片 -->
          <img src="@/assets/imgs/text-logo.png" alt="聚汇星" style="height: 30px; margin-right: 5px;">

          <!-- 流星图标 -->
          <img src="@/assets/imgs/star-icon.png" alt="流星" style="height: 30px;">
        </div>
      </div>

      <!-- 右侧管理员头像 -->
      <div style="width: fit-content; padding-right: 20px; display: flex; align-items: center;">
        <UserFilled style="width: 30px; height: 30px; color: #fff;" />
      </div>
    </div>
    <!-- 子路由视图 -->
    <router-view />
  </div>
</template>


<script setup>
import { useRoute } from 'vue-router'
import {User, UserFilled} from "@element-plus/icons-vue";
import {reactive} from "vue";
const $route = useRoute()
console.log($route.path)

const logout = () => {
  localStorage.removeItem('supermarket-user')
}
</script>

